import { array } from 'vue-types'

import type { ICreateDictDataReq } from '@/apis'

import type DictDataDialog from './DictDataDialog'

export const dictDataDialogProps = () => ({
  statusOptions: array<OptionItem>().def([])
})

export const formData = (): ICreateDictDataReq => ({
  dictType: '',
  dictLabel: '',
  dictValue: '',
  dictSort: 0,
  status: '0',
  remark: ''
})

export type IFormData = ReturnType<typeof formData>
export type DictDataDialogRef = InstanceType<typeof DictDataDialog>
